package com.ljfresh.customer.sercice.Impl;

import com.ljfresh.customer.mapper.StoreMapper;
import com.ljfresh.customer.pojo.Store;
import com.ljfresh.customer.sercice.StoreService;
import com.ljfresh.customer.sercice.common.Impl.CommonServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: Lucifer
 * @time: 2020/4/9-16:13
 */
@Service
public class StoreServiceImpl extends CommonServiceImpl<Store,Long> implements StoreService {

    @Resource
    private StoreMapper storeMapper;

    @Autowired
    public void setGenericDao() {
        super.setCommonMapper(storeMapper);
    }


    @Override
    public Long deleteAllStore() {
        return storeMapper.deleteAllStore();
    }
}
